﻿using System.Buffers;

namespace S7Cat.Models
{
    public interface IPlcStruct<T> where T : struct
    {
        static abstract ushort ByteCount { get; }
        static abstract void Serialize(in T value, IBufferWriter<byte> writer);
        static abstract void Deserialize(Span<byte> source, out T value);
    }
}
